package foodmaterial.service.impl;

import foodmaterial.dao.DocumentTrackDao;
import foodmaterial.entity.DocumentTrack;
import foodmaterial.service.DocumentTrackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DocumentTrackServiceImpl implements DocumentTrackService {

    @Autowired
    private DocumentTrackDao dao ;

    @Override
    public List<DocumentTrack> queryDocumentTrack(Long documentId) {
        return dao.selectDocumentTrack(documentId);
    }

    @Override
    public int queryDocumentTrackCount(Long documentId) {
        return dao.selectDocumentTrackCount(documentId);
    }
}
